package com.exam.system.mapper;

import com.exam.system.pojo.Permission;

import java.util.List;

/**
 * @Classname PermissionMapper
 * @Description None
 * @Date 2019/8/9 22:25
 * @Created by WDD
 */
public interface PermissionMapper {
    List<Permission> selectByAdminId(Integer id);

    List<Permission> selectAll();

    Permission selectById(Integer id);

    Permission selectByName(String name);

    Permission selectByUrl(String url);

    int editByPermission(Permission permission);

    int insertPermission(Permission permission);

    void delRolePermission(List<Integer> ids);

    int delByPermissionIds(List<Integer> ids);

    List<Permission> selectByPid(Integer id);

    void delRolePermissionByRid(Integer id);

    List<Permission> selectByRoleId(Integer id);

    int updateRolePermission(List<Integer> ids, Integer id);
}
